<div class="bjui-pageContent">
    <form action="{:U('save_wx_imgtext')}" data-callback="dialogFormCall" data-toggle="validate" data-alertmsg="false" class="dialogForm">
        <input type="hidden" name="id" value="{$va.id}"/>
        <div class="form-group">
            <label class="x100">图文标题:</label>
            <input type="text" name="title" data-rule="required" class="w400" value="{$va.title}"/>
        </div>
        <div class="form-group">
            <label class="x100">作者:</label>
            <input type="text" name="author" value="{$va.author}"/>
        </div>
        <div class="form-group clearfix">
            <label class="x100 pull-left">大封面:</label>
            <div class="pull-left parent_img">
                <if condition="$va.big_img eq null">
                <img src="__PU__/images/58008889b30bc.jpg" alt="LOGO" width="70" />
                <else/>
                <img src="{$va.big_img}" alt="LOGO" width="70" />
                </if>
                <input type="hidden" name="big_img" value="{$va.big_img}" />
                <span data-toggle="upload" 
                data-uploader="{:U('Index/upload')}"
                 data-file-type-exts="*.png;*.jpg;"
                 data-icon="cloud-upload"
                 data-on-upload-success="upload_callback"
                 data-auto="true"
                 data-button-text="上传图片"
                ></span>
                <span class="text-warning">大图片建议尺寸：900像素 * 500像素</span>
            </div>
        </div>
        <div class="form-group clearfix">
            <label class="x100 pull-left">小封面:</label>
            <div class="pull-left parent_img">
                <if condition="$va.small_img eq null">
                <img src="__PU__/images/58008889b30bc.jpg" alt="LOGO" width="70" />
                <else/>
                <img src="{$va.small_img}" alt="LOGO" width="70" />
                </if>
                <input type="hidden" name="small_img" value="{$va.small_img}"/>
                <span data-toggle="upload" 
                data-uploader="{:U('Index/upload')}"
                 data-file-type-exts="*.jpg;"
                 data-icon="cloud-upload"
                 data-on-upload-success="upload_callback"
                 data-auto="true"
                 data-button-text="上传图片"
                ></span>
                <span class="text-warning">小图片建议尺寸：200像素 * 200像素</span>
            </div>
        </div>
        <div class="form-group">
            <label class="x100">摘要:</label>
            <textarea name="intro" class="w400">{$va.intro}</textarea>
            <p class="text-warning" style="padding-left: 100px;">选填，如果不填写会默认抓取正文前54个字</p>
        </div>
        <div class="form-group">
            <label class="x100">原文连接:</label>
            <input type="text" name="url" class="w400" value="{$va.url}"/>
            <span class="text-warning">可不填,如果填写则文档左下角会出现阅读原文</span>
        </div>
        <div class="form-group clearfix">
            <label class="x100 text-top pull-left">正本:</label>
            <div class="pull-left">
                <textarea name="content"
                             data-toggle="kindeditor" 
                             data-items="'source', '|', 'undo', 'redo', '|', 'preview', 'print', 'template', 'code', 'cut', 'copy', 'paste',
        'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
        'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
        'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/',
        'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
        'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image', 'multiimage',
        'flash', 'media', 'insertfile', 'table', 'hr', 'emoticons', 'baidumap', 'pagebreak',
        'anchor', 'link', 'unlink', '|', 'about'"
                             style="width: 100%;"
                             >
                        {$va.content}     
                </textarea>
                </div>
        </div>
    </form>
</div>
<include file="Common/footer" ftype="save" />